// 利用 const 关键词也可以声明一组常量，例如，声明十二生肖的排位
const rat = 1;
const cattle = 2;
const tiger = 3;
const rabbit = 4;
const dragon = 5;
// 数字枚举
var ChineseZodiac;
(function (ChineseZodiac) {
    ChineseZodiac[ChineseZodiac["rat"] = 0] = "rat";
    ChineseZodiac[ChineseZodiac["cattle"] = 1] = "cattle";
    ChineseZodiac[ChineseZodiac["tiger"] = 2] = "tiger";
    ChineseZodiac[ChineseZodiac["rabbit"] = 3] = "rabbit";
    ChineseZodiac[ChineseZodiac["dragon"] = 4] = "dragon";
})(ChineseZodiac || (ChineseZodiac = {}));
// 字符串枚举
var Person;
(function (Person) {
    Person["name"] = "NAME";
    Person["age"] = "AGE";
    Person["love"] = "LOVE";
    Person["hobby"] = "HOBBY";
})(Person || (Person = {}));
console.log(Person.name); // NAME
console.log(Person.hobby); // HOBBY
